package zongbao.service.impl;

import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zongbao.domain.Book;
import zongbao.mapper.BookMapper;
import zongbao.service.BookService;

import java.util.List;

@Service
public class BookServiceImpl implements BookService {
    @Autowired
    private BookMapper bookMapper;
    @Override
    public Book findBookById(Integer id) {
        return bookMapper.findBookById(id);
    }

    @Override
    public List<Book> findUserById(Integer id) {
        return bookMapper.findUserById(id);
    }

    @Override
    public List<Book> allBook() {
        return bookMapper.allBook();
    }

    @Override
    public int jieBook(Book book) {
        return bookMapper.jieBook(book);
    }

    @Override
    public int huanBook(Book book) {
        return bookMapper.huanBook(book);
    }

    @Override
    public List<Book> AllBook() {
        return bookMapper.AllBook();
    }

    @Override
    public List<Book> guiBook() {
        return bookMapper.guiBook();
    }

    @Override
    public int quehuan(Book book) {
        return bookMapper.quehuan(book);
    }

    @Override
    public void addbook(Book book) {
         bookMapper.addbook(book);
    }

    @Override
    public int updatebook(Book book) {
        return bookMapper.updateBook(book);
    }

    @Override
    public int detabook(Integer id) {
        return bookMapper.detabook(id);
    }

    @Override
    public List<Book> Tvbook(String guihuan) {
        return bookMapper.Tvbook(guihuan);
    }


}
